package com.cn.jx.manager.service.mtn;

import java.util.List;

import com.cn.jx.manager.form.RoleForm;
import com.jx.exception.MyException;

/**
 * 
 * @author 姜旭
 * @version v1.11.20.2019
 * @since 
 * <p>创建时间：2019年11月28日
 * <p>功能描述：<p>IRoleService  角色服务层接口定义 
 * <p>官方网站：management/admin/index
 * <p>邮箱地址：524577360@qq.com
 */
public interface IRoleServiceMtn {
	
	
	/**
	 * 
	* @Title:saveOrUpdateRole
	* @Description:TODO(保存或更新角色)
	* <p>邮箱地址: 524577360@qq.com
	* @param resource
	* @throws MyException
	* void
	* @throws
	 */
	public void saveOrUpdateRole(RoleForm resource)   throws MyException;
	
	
	/**
	 * 
	* @Title:delRole
	* @Description:TODO(删除角色)
	* <p>邮箱地址: 524577360@qq.com
	* @param id
	* @param opertor
	* @throws Exception
	* void
	* @throws
	 */
	public void delRole(List<String> id,String opertor) throws Exception;
	
	/**
	 * 
	* @Title:removeRole
	* @Description:TODO(彻底删除)
	* <p>邮箱地址: 524577360@qq.com
	* @param id
	* @throws Exception
	* void
	* @throws
	 */
	public void removeRole(List<String> id,String opertor) throws Exception;
	
	/**
	 * 
	* @Title:removeRoleAll
	* @Description:TODO(清空回收站)
	* <p>邮箱地址: 524577360@qq.com
	* @param opertor
	* @throws Exception
	* void
	* @throws
	 */
	public void removeRoleAll(String opertor) throws Exception;
	
	/**
	 * 
	* @Title:recoverRole
	* @Description:TODO(批量找回)
	* <p>邮箱地址: 524577360@qq.com
	* @param id
	* @param opertor
	* @throws Exception
	* void
	* @throws
	 */
	public void recoverRole(List<String> id,String opertor) throws Exception;
	
	/**
	 * 
	* @Title:addRoleResource
	* @Description:TODO(给角色分派资源)
	* <p>邮箱地址: 524577360@qq.com
	* @param roleId
	* @param resourceId
	* @param opertor
	* @throws Exception
	* void
	* @throws
	 */
	public void addRoleResource(String roleId,String[] resourceId,String opertor) throws Exception;
	
}
